package app.igroman.gismeteo.app;

import android.app.Activity;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.widget.EditText;
import android.widget.ListView;
import app.igroman.gismeteo.app.gismeteo;

public class CitySearch implements TextWatcher {
	protected EditText linkedView;
	protected Activity act;
	protected ListView linkedList;
	
	public CitySearch(Activity pActivity, EditText pLinkedView, ListView pList) {
		this.act = pActivity;
		this.linkedView = pLinkedView;
		this.linkedList = pList;
	}
	
	public void afterTextChanged(Editable s) {
//		Log.i("test", s.toString());
//		if (s.length() > 0) {	
//			((app.igroman.gismeteo.app.gismeteo) act).LoadCounty(null, linkedList);
//		} else {
//			((app.igroman.gismeteo.app.gismeteo) act).LoadCounty(s.toString(), linkedList);
//		}
	}
	
	public void beforeTextChanged(CharSequence s, int start, int count, int after) {
		
	}
	
	public void onTextChanged(CharSequence s, int start, int before, int count) {
		
	}
}
